var size = array_length_1d(turnOrder);
var inst= argument0;
var roll = false;
var i = 0;

for (i=0; i<size; i+=1)
{
    if turnOrder[i] == inst
    {
        roll = true;
        break;
    }
}

if roll = false
{
    turnOrder[size] = inst;
    scrTurnSort();
}

